package com.shelpe.services.sinbadgateway.entity.jpa;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Entity(name = "creatives")
@Data
public class Creative {

	@Id
	@Column(name = "creative_id")
	@JsonProperty("creative_id")
	private long autoID;

	private String nick;
	@Column(name = "user_id")
	@JsonProperty("user_id")
	private long userID;
	@Column(name = "campaign_id")
	@JsonProperty("campaign_id")
	private long campaignID;
	@Column(name = "adgroup_id")
	@JsonProperty("adgroup_id")
	private long adgroupID;

	@Column(name = "img_url")
	@JsonProperty("img_url")
	private String image;
	private String title;
	@JsonProperty("audit_status")
	private String auditStatus;
	@JsonIgnore
	private String auditDesc;

	@JsonProperty("create_time")
	private Date createTime;
	@JsonProperty("modified_time")
	private Date modifiedTime;
	@JsonIgnore
	private Date updatedTime;
}
